package com.michau.testitas.core.dao.hibernate;

import com.michau.testitas.common.model.definition.Definition;
import com.michau.testitas.core.dao.api.DefinitionDao;

/**
 * User: michau
 * Date: 4/7/13
 * Time: 7:17 PM
 */
public class DefinitionDaoHibernate extends GenericDaoHibernate<Definition, Long> implements DefinitionDao {

    public DefinitionDaoHibernate(){
        super(Definition.class);
    }

    @Override
    public void createOrUpdate(Definition definition) {
        getSession().saveOrUpdate(definition);
    }

}
